package com.crazy.model.custom.mapper;

import com.crazy.model.major.entity.TUserLimit;
import com.crazy.model.major.entity.TUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户角色接口
 * @author zhaochaofeng
 * @version 1.0
 * @date 2020/11/17 9:51
 */
public interface IUserRoleMapper {

    /**
     * 通过userId获取角色信息
     * @param userId
     * @return
     */
    List<TUserRole> getRoleNameByUserId(Long userId);

    /**
     * 通过userId获取权限信息
     * @param userId
     * @return
     */
    List<TUserLimit> getLimitByUserId(Long userId);

}
